home *** CD-ROM | disk | FTP | other *** search
- ELF_GETPHDR(3E) Last changed: 1-8-99
-
-
- NNAAMMEE
- eellff__ggeettpphhddrr eellff3322__ggeettpphhddrr, eellff3322__nneewwpphhddrr, eellff6644__ggeettpphhddrr, eellff6644__nneewwpphhddrr
- - Retrieves class-dependent program header table
-
- SSYYNNOOPPSSIISS
- cccc [_f_l_a_g ...] _f_i_l_e ... --lleellff [_l_i_b_r_a_r_y ...]
-
- ##iinncclluuddee <<lliibbeellff..hh>>
-
- EEllff3322__PPhhddrr **eellff3322__ggeettpphhddrr((EEllff **eellff));;
-
- EEllff3322__PPhhddrr **eellff3322__nneewwpphhddrr((EEllff **eellff,, ssiizzee__tt ccoouunntt));;
-
- EEllff6644__PPhhddrr **eellff6644__ggeettpphhddrr((EEllff **eellff));;
-
- EEllff6644__PPhhddrr **eellff6644__nneewwpphhddrr((EEllff **eellff,, ssiizzee__tt ccoouunntt));;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- For a 32-bit class file, eellff3322__ggeettpphhddrr returns a pointer to the
- program execution header table, if one is available for the ELF
- descriptor, eellff.
-
- eellff3322__nneewwpphhddrr allocates a new table with ccoouunntt entries, regardless of
- whether one existed previously, and sets the EELLFF__FF__DDIIRRTTYY bit for the
- table [see eellff__ffllaagg(3E)]. Specifying a zero ccoouunntt deletes an existing
- table. Note that this behavior differs from that of eellff3322__nneewweehhddrr
- [see eellff3322__ggeetteehhddrr(3E)], allowing a program to replace or delete the
- program header table, and changing its size, if necessary.
-
- If no program header table exists, the file is not a 32-bit class
- file, an error occurs, or eellff is null, both functions return a null
- pointer. eellff3322__nneewwpphhddrr also returns a null pointer if ccoouunntt is zero.
-
- The table is an array of EEllff3322__PPhhddrr structures, each of which includes
- the following members:
-
- EEllff3322__WWoorrdd pp__ttyyppee;;
-
- EEllff3322__OOffff pp__ooffffsseett;;
-
- EEllff3322__AAddddrr pp__vvaaddddrr;;
-
- EEllff3322__AAddddrr pp__ppaaddddrr;;
-
- EEllff3322__WWoorrdd pp__ffiilleesszz;;
-
- EEllff3322__WWoorrdd pp__mmeemmsszz;;
-
- EEllff3322__WWoorrdd pp__ffllaaggss;;
-
- EEllff3322__WWoorrdd pp__aalliiggnn;;
-
- The ELF header's ee__pphhnnuumm member tells how many entries the program
- header table has [see eellff__ggeetteehhddrr(3E)]. A program may inspect this
- value to determine the size of an existing table; eellff3322__nneewwpphhddrr
- automatically sets the member's value to ccoouunntt. If the program is
- building a new file, it is responsible for creating the file's ELF
- header before creating the program header table.
-
- The 64-bit class works identically, simply replacing all instances of
- 32 in the description and table with 64.
-
- SSEEEE AALLSSOO
- eellff(3E), eellff__bbeeggiinn(3E), eellff__ffllaagg(3E), eellff__ggeetteehhddrr(3E)
-
- This man page is available only online.
-